#Boa:Dialog:DlgFinanceMain

import wx

def create(parent):
    return DlgFinanceMain(parent)

[wxID_DLGFINANCEMAIN, wxID_DLGFINANCEMAINBTNACCOUNT, 
 wxID_DLGFINANCEMAINBTNCUSTOMER, wxID_DLGFINANCEMAINBTNPEER, 
 wxID_DLGFINANCEMAINBTNSUM, wxID_DLGFINANCEMAINBTNSUPPLIER, 
] = [wx.NewId() for _init_ctrls in range(6)]

class DlgFinanceMain(wx.Dialog):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Dialog.__init__(self, id=wxID_DLGFINANCEMAIN, name=u'DlgFinanceMain',
              parent=prnt, pos=wx.Point(366, 233), size=wx.Size(516, 420),
              style=wx.DEFAULT_DIALOG_STYLE, title=u'\u8d26\u52a1\u67e5\u8be2')
        self.SetClientSize(wx.Size(508, 386))

        self.btnCustomer = wx.Button(id=wxID_DLGFINANCEMAINBTNCUSTOMER,
              label=u'\u5ba2\u6237\u8d26\u52a1\u67e5\u8be2',
              name=u'btnCustomer', parent=self, pos=wx.Point(112, 56),
              size=wx.Size(104, 24), style=0)
        self.btnCustomer.Bind(wx.EVT_BUTTON, self.OnBtnCustomerButton,
              id=wxID_DLGFINANCEMAINBTNCUSTOMER)

        self.btnSupplier = wx.Button(id=wxID_DLGFINANCEMAINBTNSUPPLIER,
              label=u'\u4f9b\u5e94\u5546\u8d26\u52a1\u67e5\u8be2',
              name=u'btnSupplier', parent=self, pos=wx.Point(112, 96),
              size=wx.Size(104, 24), style=0)
        self.btnSupplier.Bind(wx.EVT_BUTTON, self.OnBtnSupplierButton,
              id=wxID_DLGFINANCEMAINBTNSUPPLIER)

        self.btnPeer = wx.Button(id=wxID_DLGFINANCEMAINBTNPEER,
              label=u'\u540c\u884c\u8d26\u52a1\u67e5\u8be2', name=u'btnPeer',
              parent=self, pos=wx.Point(112, 136), size=wx.Size(104, 24),
              style=0)

        self.btnSum = wx.Button(id=wxID_DLGFINANCEMAINBTNSUM,
              label=u'\u8d26\u52a1\u7edf\u8ba1', name=u'btnSum', parent=self,
              pos=wx.Point(112, 192), size=wx.Size(104, 24), style=0)

        self.btnAccount = wx.Button(id=wxID_DLGFINANCEMAINBTNACCOUNT,
              label=u'\u8d26\u6237\u8d44\u91d1\u5f80\u6765\u7ba1\u7406',
              name=u'btnAccount', parent=self, pos=wx.Point(312, 56),
              size=wx.Size(120, 24), style=0)
        self.btnAccount.Bind(wx.EVT_BUTTON, self.OnBtnAccountButton,
              id=wxID_DLGFINANCEMAINBTNACCOUNT)

    def __init__(self, parent):
        self._init_ctrls(parent)

    def OnBtnCustomerButton(self, event):
        import DlgFundCustomer
        dlg = DlgFundCustomer.create(self.GetParent())
        dlg.Show()
        self.Close()

    def OnBtnAccountButton(self, event):
        import DlgAccountDetail
        dlg = DlgAccountDetail.create(self.GetParent())
        dlg.Show()
        self.Close()

    def OnBtnSupplierButton(self, event):
        import DlgFundCustomer
        dlg = DlgFundCustomer.DlgFundCustomer(self.GetParent(), DlgFundCustomer.Type_Supplier)
        dlg.Show()
        self.Close()
